<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>交易记录</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('Transaction/index')}">
        用户ID：
        <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
               placeholder="请输入用户ID">
        手机号：
        <input class="form-control" type="number" name="mobile" style="width: 200px;" value="{:input('request.mobile')}"
               placeholder="用户手机号">
        日期：
        <input class="form-control" type="date" name="date" style="width: 200px;" value="{:input('request.date')}">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('Transaction/index')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>买家用户名</th>
                <th>买家手机号</th>
                <th>买入单价</th>
                <th>买入数量</th>
                <th>成交价格</th>
                <th>成交爱币数</th>
                <th>卖家用户名</th>
                <th>卖家手机号</th>
                <th>交易时间</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.buyname}</td>
                    <td>{$vo.buymobile}</td>
                    <td>{$vo.buyprice}</td>
                    <td>{$vo.rcoin}</td>
                    <td>{$vo.price}</td>
                    <td>{$vo['coin']}</td>
                    <td>{$vo.sallname}</td>
                    <td>{$vo.sallmobile}</td>
                    <td>{:date('Y-m-d H:i:s',$vo['ctime'])}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>